package com.snail.billing.session;

import com.android.net.HttpSession;
import com.snail.billing.DataCache;

public class CardsSession extends HttpSession {

	public CardsSession() {
		DataCache cache = DataCache.getInstance();
		String host = cache.importParams.hostImprest;
		String gameId = cache.importParams.gameId;
		String platformId = String.valueOf(cache.paymentParams.platformId);
		String address = String.format("http://%s/m/ajax/cards/query/%s/%s", host, gameId, platformId);
		setAddress(address);
	}

	public CardsSession(int platformId) {
		DataCache cache = DataCache.getInstance();
		String host = cache.importParams.hostImprest;
		String gameId = cache.importParams.gameId;
		String address = String.format("http://%s/m/ajax/cards/query/%s/%s", host, gameId, String.valueOf(platformId));
		setAddress(address);
	}

}
